package edu.uoc.tdp.pac3.ui.client;

import java.util.Locale;

import edu.uoc.tdp.pac3.ui.i18n.LanguageUtils;

public class ClientWindow {
	
	public ClientWindow() {
		String title = LanguageUtils.getMessage("client.title");
		int width = 750;
		int height = 250;		
		ClientFrame main = new ClientFrame(title,width,height);		
		//main.nuevoPanel(new ClientPanel());
		main.completarFrame();	
	}
	
	public static void main(String args[]) {
		if(args.length==0) {
			LanguageUtils.setDefaultLanguage("i18n/messages");
		}
		if(args.length==1) {
			Locale locale = new Locale(args[0]);
			LanguageUtils.setLanguage("i18n/messages", locale);			
		}
		new ClientWindow();
	}
}
